{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item active"><a href="{:url('admin/authCate/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="card shadow">
	<div class="card-header">
		<div>先添加菜单分类后添加规则</div>
	</div>
	<div class="card-body">
		<div class="dataTable-toolbar">
			<a href="{:url('admin/authCate/add')}" class="btn btn-primary btn-sm dataTable-add">添加</a>
		</div>
		<form method="post" action="{:url('admin/authCate/listorders')}" class="mb20 J_ajaxForm">
			<table class="table table-striped table-bordered table-hover dataTable-table">
				<thead>
					<tr>
						<th width="60">排序</th>
						<th>名称</th>
						<th>描述</th>
						<th width="100">状态</th>
						<th width="140">操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr>
						<td><input type="text" name="vieworders[{$vo['id']}]" value="{$vo['vieworder']}" class="form-control" /></td>
						<td>{$vo['name']}</td>
						<td>{$vo['descrip']}</td>
						<td>{$vo['status_show']|raw}</td>
						<td>
							<a title="编辑" class="btn btn-primary btn-xs" href="{:url('admin/authCate/add', ['id'=>$vo['id']])}"><i class="fa fa-edit"></i> 编辑</a>
							<a title="删除" class="btn btn-danger btn-xs J_layerConfirm" data-tip="您确定要执行删除操作吗？" href="{:url('admin/authCate/doDelete', ['id'=>$vo['id']])}"><i class="fa fa-trash"></i> 删除</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			<div class="dataTable-controll">
				<button type="submit" class="btn btn-success btn-sm J_ajaxSubmit">提交排序</button>
			</div>
		</form>
	</div>
</div>
{/block}


{block name="script"}
{/block}